package com.glsc.ngateway.common.base.domain.mysql.gateway.platform.flow.cmdb;

import com.glsc.ngateway.common.base.domain.mysql.gateway.FlowFormBaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.SQLDeleteAll;
import org.hibernate.annotations.Where;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


/**
 * @author liwei
 * 服务器规格流程主表
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder
@Entity
@Where(clause = "deleted = 0")
@SQLDelete(sql = "update t_gw_flow_form_device_standard_modify set deleted = UNIX_TIMESTAMP(NOW()) where id=?")
@SQLDeleteAll(sql = "update t_gw_flow_form_device_standard_modify set deleted = UNIX_TIMESTAMP(NOW()) where id=?")
@Table(name = "t_gw_flow_form_device_standard_modify")
@org.hibernate.annotations.Table(appliesTo = "t_gw_flow_form_device_standard_modify", comment = "服务器规格新增删除流程表单")
public class FlowFormDeviceStandardModify extends FlowFormBaseEntity {
    private static final long serialVersionUID = -2923787668023185875L;


    //业务数据

    @Column(name = "modify_type", columnDefinition = "varchar(10) comment '业务类型:0-新增,1-删除,2-更新'")
    private String modifyType;

    @Column(name = "appendices_file_id_list", columnDefinition = "Text comment '附件'")
    private String appendicesFileIdList;

}
